/*
 * UrlEncodePanel.java
 *
 * Created on __DATE__, __TIME__
 */

package com.feng.swing.tools.ui;

import javax.swing.JButton;

import com.feng.swing.tools.listener.ToolsTabPanelListener;

/**
 *
 * @author  __USER__
 */
public class UrlEncodePanel extends javax.swing.JPanel {

	/** Creates new form UrlEncodePanel */
	public UrlEncodePanel() {
		initComponents();
	}

	/** This method is called from within the constructor to
	 * initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
	//GEN-BEGIN:initComponents
	// <editor-fold defaultstate="collapsed" desc="Generated Code">
	private void initComponents() {

		jLabel10 = new javax.swing.JLabel();
		jScrollPane9 = new javax.swing.JScrollPane();
		urlEncodeData = new javax.swing.JTextArea();
		jLabel12 = new javax.swing.JLabel();
		urlEncodeBtn = new JButton();
		urlDecodeBtn = new JButton();
		jLabel13 = new javax.swing.JLabel();
		jScrollPane11 = new javax.swing.JScrollPane();
		urlEncodeResult = new javax.swing.JTextArea();
		urlEncodeChar = new javax.swing.JComboBox();

		jLabel10.setText("\u6570\u636e\uff1a");

		jScrollPane9
				.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);

		urlEncodeData.setColumns(20);
		urlEncodeData.setLineWrap(true);
		urlEncodeData.setRows(5);
		jScrollPane9.setViewportView(urlEncodeData);

		jLabel12.setText("\u7ed3\u679c\uff1a");

		urlEncodeBtn.setLabel("Encode");
		urlEncodeBtn.setName("urlEncodeBtn");
		urlEncodeBtn.addMouseListener(new ToolsTabPanelListener(this));

		urlDecodeBtn.setLabel("Decode");
		urlDecodeBtn.setName("urlDecodeBtn");
		urlDecodeBtn.addMouseListener(new ToolsTabPanelListener(this));

		jLabel13.setText("\u5b57\u7b26\u96c6\uff1a");

		urlEncodeResult.setColumns(20);
		urlEncodeResult.setLineWrap(true);
		urlEncodeResult.setRows(5);
		jScrollPane11.setViewportView(urlEncodeResult);

		urlEncodeChar.setModel(new javax.swing.DefaultComboBoxModel(
				new String[] { "UTF-8", "GBK", "ISO8859-1" }));

		org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(
				this);
		this.setLayout(layout);
		layout
				.setHorizontalGroup(layout
						.createParallelGroup(
								org.jdesktop.layout.GroupLayout.LEADING)
						.add(
								layout
										.createSequentialGroup()
										.add(
												layout
														.createParallelGroup(
																org.jdesktop.layout.GroupLayout.LEADING)
														.add(
																layout
																		.createSequentialGroup()
																		.addContainerGap()
																		.add(
																				layout
																						.createParallelGroup(
																								org.jdesktop.layout.GroupLayout.CENTER)
																						.add(
																								jLabel13)
																						.add(
																								jLabel10)
																						.add(
																								jLabel12))
																		.addPreferredGap(
																				org.jdesktop.layout.LayoutStyle.RELATED)
																		.add(
																				layout
																						.createParallelGroup(
																								org.jdesktop.layout.GroupLayout.LEADING)
																						.add(
																								urlEncodeChar,
																								org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
																								147,
																								org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
																						.add(
																								jScrollPane9,
																								org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
																								384,
																								Short.MAX_VALUE)
																						.add(
																								jScrollPane11,
																								org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
																								384,
																								Short.MAX_VALUE)))
														.add(
																layout
																		.createSequentialGroup()
																		.add(
																				78,
																				78,
																				78)
																		.add(
																				urlEncodeBtn,
																				org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
																				org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
																				org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
																		.add(
																				93,
																				93,
																				93)
																		.add(
																				urlDecodeBtn,
																				org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
																				org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
																				org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
										.addContainerGap()));
		layout
				.setVerticalGroup(layout
						.createParallelGroup(
								org.jdesktop.layout.GroupLayout.LEADING)
						.add(
								org.jdesktop.layout.GroupLayout.TRAILING,
								layout
										.createSequentialGroup()
										.add(14, 14, 14)
										.add(
												layout
														.createParallelGroup(
																org.jdesktop.layout.GroupLayout.LEADING)
														.add(jLabel13)
														.add(
																urlEncodeChar,
																org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
																org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
																org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												org.jdesktop.layout.LayoutStyle.RELATED)
										.add(
												layout
														.createParallelGroup(
																org.jdesktop.layout.GroupLayout.LEADING)
														.add(jLabel10)
														.add(
																jScrollPane9,
																org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
																35,
																org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												org.jdesktop.layout.LayoutStyle.RELATED)
										.add(
												layout
														.createParallelGroup(
																org.jdesktop.layout.GroupLayout.LEADING)
														.add(
																layout
																		.createSequentialGroup()
																		.add(
																				jScrollPane11,
																				org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
																				117,
																				org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				org.jdesktop.layout.LayoutStyle.RELATED)
																		.add(
																				layout
																						.createParallelGroup(
																								org.jdesktop.layout.GroupLayout.TRAILING)
																						.add(
																								urlEncodeBtn,
																								org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
																								org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
																								org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
																						.add(
																								urlDecodeBtn,
																								org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
																								org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
																								org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
														.add(jLabel12)).add(89,
												89, 89)));
	}
	//GEN-BEGIN:variables
	// Variables declaration - do not modify
	public JButton urlDecodeBtn;
	public JButton urlEncodeBtn;
	public javax.swing.JLabel jLabel10;
	public javax.swing.JLabel jLabel12;
	public javax.swing.JLabel jLabel13;
	public javax.swing.JScrollPane jScrollPane11;
	public javax.swing.JScrollPane jScrollPane9;
	public javax.swing.JComboBox urlEncodeChar;
	public javax.swing.JTextArea urlEncodeData;
	public javax.swing.JTextArea urlEncodeResult;
	// End of variables declaration//GEN-END:variables

}